/**
 * @author nullus
 */


function adjustPageHeightOnResize () {
	//TODO ひどいコードなので、意図を明確にして書き直すべし
	
	//高さ調節
	//右メインパネル
	container_height = document.getElementById('container').clientHeight;
	upper_height = document.getElementById('upper').clientHeight;
	lower_height = document.getElementById('lower').style.height = container_height - upper_height;
	center_panel_height = document.getElementById('center-panel').style.height = lower_height;
	center_panel_header_height = document.getElementById('center-panel-header').clientHeight;
	task_box_list_margin_top = 10;
	task_box_list_height = document.getElementById('task-box-list').style.height = center_panel_height - center_panel_header_height - task_box_list_margin_top;

	left_panel_height = document.getElementById('left-panel').style.height = lower_height;
	
	//左パネル
	tagtree_height = document.getElementById('tagTree').style.height = 
						lower_height - document.getElementById('calendarContainer').clientHeight;
						
}

/*
 * logout.rhtmlにポストするためのメソッド
 */
function doPostToLogout () {
	document.getElementById('logout-ancher').submit();
}

/*
 * add_task.rhtmlにポストするためのメソッド
 */
function doPostToAddTask () {
	document.getElementById('add-task').submit();
}

/*
 * remove_task.rhtmlにポストするためのメソッド
 */
function doPostToRemoveTask () {
	document.getElementById('remove-task').submit();
}